package com.example.design.shejimoshi.structure.adapter.统一多个类的接口设计;

import com.example.design.shejimoshi.structure.adapter.统一多个类的接口设计.外部资源.AliPay;

public class AliPayAdapter implements Pay {
    /**
     * 支付宝
     */
    private AliPay aliPay;

    public AliPayAdapter(AliPay aliPay) {
        this.aliPay = aliPay;
    }  

    @Override  
    public String pay(double amount, String paymentDetails) {  
        return aliPay.aliPay(amount, paymentDetails);
    }  
}